package cn.iocoder.yudao.module.wms.dal.redis.doc;

import cn.hutool.core.date.LocalDateTimeUtil;
import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils;
import cn.iocoder.yudao.framework.common.util.json.JsonUtils;
import cn.iocoder.yudao.module.wms.dal.redis.RedisKeyConstants;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.TimeUnit;


/**
 * {@link DocRedisDAO} 的 RedisDAO
 *
 * @author 芋道源码
 */
@Repository
public class DocRedisDAO {

    @Resource
    private StringRedisTemplate stringRedisTemplate;

    public String increment(String code, Integer increment) {
        return String.valueOf(stringRedisTemplate.opsForValue().increment(RedisKeyConstants.WMS_DOC_NO + code, increment));
    }

}
